{#
 This Source Code Form is subject to the terms of the Mozilla Public
 License, v. 2.0. If a copy of the MPL was not distributed with this
 file, You can obtain one at https://mozilla.org/MPL/2.0/.
#}

{% extends "firefox/releases/notes.html" %}

{% set notes_feed = url('firefox.nightly.notes.feed') %}
{% set blog_feed = 'https://blog.nightly.mozilla.org/feed/' %}

{% block extrahead %}
<link rel="alternate" type="application/atom+xml" title="Firefox Nightly Notes Feed" href="{{ notes_feed }}">
<link rel="alternate" type="application/atom+xml" title="Firefox Nightly News Feed" href="{{ blog_feed }}">
{% endblock %}

{% block page_image %}{{ static('protocol/img/logos/firefox/browser/nightly/og.png') }}{% endblock %}
{% block page_favicon %}{{ static('img/favicons/firefox/browser/nightly/favicon.ico') }}{% endblock %}
{% block page_favicon_large %}{{ static('img/favicons/firefox/browser/nightly/favicon-196x196.png') }}{% endblock %}
{% block page_ios_icon %}{{ static('img/favicons/firefox/browser/nightly/apple-touch-icon.png') }}{% endblock %}

{% set header_class = 'mzp-t-dark t-nightly' %}
{% set brand_product = 'nightly' %}

{% if release.is_latest %}
  {% set primary_heading = 'See what landed recently in <span>Firefox Nightly</span>!'|safe %}
{% endif %}

{% set download_button_primary %}
  {{ download_firefox('nightly', platform='desktop', force_direct=True, alt_copy='Download Firefox Nightly', dom_id="download-nightly-primary") }}
{% endset %}

{% set download_button_secondary %}
  {{ download_firefox('nightly', platform='desktop', force_direct=True, alt_copy='Download Firefox Nightly', dom_id="download-nightly-secondary") }}
{% endset %}

{% set download_all_link = firefox_url('desktop', 'all', channel='nightly') %}

{% block extra_resources %}
  <a rel="external" href="https://blog.nightly.mozilla.org/">Firefox Nightly News</a>
{% endblock %}

{% block extra_draft_description %}
  <p class="c-release-draft-text">
      ProTip: Be the first to know the latest changes by subscribing to the Nightly <a href="{{ notes_feed }}">Notes
      Feed</a> and <a href="{{ blog_feed }}">News Feed</a>. Also, don’t forget to follow us on
      <a rel="external noopener noreferrer" href="https://mastodon.social/@FirefoxNightly">Mastodon</a> and <a rel="external noopener noreferrer" href="https://bsky.app/profile/firefoxnightly.bsky.social">Bluesky</a>
  </p>
{% endblock %}
